import moment from 'moment'


export function dateFormat(time, pattern) {
    if (!pattern) {
        pattern = 'YYYY-MM-DD HH:mm:ss'
    }
    return moment(time).format(pattern)
}
